/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fri.businessLayer;

import fri.entiry.FrHistory;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author NguyenDongUIT
 */
@Remote
public interface HistoryBeanRemote {

    List<FrHistory> getHistory(String userId);

    int addHistory(FrHistory history);

    List<FrHistory> getHistoryByUserIdAndState(String userId, int state);

    int deleteHistory(String historyId);

    int deleteAllHistory(String historyId, int state);

    int isHistoryFinished(String historyId);

    FrHistory getHistoryById(String historyId);

    int changeStateHistory(String historyId, int state);
    
}
